package com.scau.phradmin.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scau.phradmin.domain.entity.Admin;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yuzhiyi
 * @since 2018-08-05
 */
@Component
public interface AdminMapper extends BaseMapper<Admin> {

	@Select("select * from admin where email = #{email} limit 1")
	public Admin getAdminByEmail(@Param("email") String email);

}
